
# tel={"Tom":88239082948,
#   "Jerry":3123124445}

# print (tel["Jerry"])


# t=[("Tom","123124552"),("Jerry",3213444444)]#元组
# print (t)
# telDict=dict(t)
# print(telDict)

# student=dict(name="Tom",age="22")
# print (student)

# a=[1,2]
# a[2]=3

# a={0:1,1:2,2:3}
# a[3]=4
# print (a)

# tel={"Tom":88239082948,
#   "Jerry":3123124445}
# str="Tom's No is {Tom}"
# print (str.format_map(tel))


# tel={"Tom":88239082948,"book":[1,2,3]}#book对应列表
# d=tel.copy()#只拷贝了字典,没有拷贝列表,列表依然共享
# d["book"][1]="老人与海"
# print (d)
# print (tel)


# from copy import deepcopy#深度拷贝
# tel={"Tom":88239082948,"book":[1,2,3]}#book对应列表
# # d=deepcopy(tel)
# # d["book"][1]="老人与海"
# # print (d)
# # print (tel)

# # #清空字典
# # print (tel)
# # tel.clear()
# # print (tel)

# # telson=tel.fromkeys([1,3])
# telson=tel.get("Tom")
# print (telson)


tel={1:13,2:26,3:39}
# print (tel.keys())#打印所有键
# print(tel.pop(2))#出栈,打印并且删除键值对
# print (tel.popitem())#随机出栈,打印键值对元组
# print (tel)

# tel.setdefault(4,"N/A")
# print(tel)
# tel.update({66:666})
# print(tel)

# print(tel.values())

# import math
# from math import sqrt#不需要写math.来引用sqrt方法
# # print("dddd",23123124,sep="*")
# print(sqrt(3))

# from math import *#导入所有
# from math import sqrt as sq1
# from cmath import sqrt as sq2

# import  math as m


#python的赋值
# x,y,z=1,2,3
# print(x,y,z)

# x,y=y,x
# print(x,y,z)

# values=(x,y,z)
# print(values)

# values=1,2,3,4,5,6,7,8,9,10,11,12,13
# x,*_=values
# print(x)




